package com.team11.server.controller.admin;

import com.team11.server.pojo.PInformation;
import com.team11.server.service.admin.Admin_SelAll_P_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_SelAll_P_Controller {
    @Autowired
    private Admin_SelAll_P_Service admin_selAll_p_service;
    @ApiOperation("根据是否结业查询项目组(0结业，1未结业)")
    @PostMapping("/SelAll_P")
    public List<PInformation> SelAll_P(Integer pStatus){
        return admin_selAll_p_service.SelAll_P(pStatus);
    }
}
